package com.zzy.face.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.persistence.*;

/**
 * @Author 朱泽玉
 * @Create 2022/1/29 10:23
 * @Description 出入记录
 * @Modified By:
 */
@Data
@Entity
public class Record {
    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;

    private int method;

    private String date_time;

    @ManyToOne(cascade = CascadeType.ALL)
    @JoinColumn(name = "student_uid")
    private Student student;
}
